package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商城订单
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_user_stroke_order_mall")
public class UserStrokeOrderMall extends Model<UserStrokeOrderMall> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键(订单ID)
     */
    @TableId(value = "order_id", type = IdType.ASSIGN_ID)
    private String orderId;
    /**
     * 商品编码
     */
    @TableField("commodity_code")
    private String commodityCode;
    /**
     * 商品名称
     */
    @TableField("commodity_name")
    private String commodityName;
    /**
     * 商品价格
     */
    @TableField("commodity_price")
    private BigDecimal commodityPrice;
    /**
     * 结算价格
     */
    @TableField("discount_price")
    private BigDecimal discountPrice;
    /**
     * 商品简介
     */
    @TableField("commodity_introduction")
    private String commodityIntroduction;
    /**
     * 商品图片
     */
    @TableField("commodity_pic")
    private String commodityPic;
    /**
     * 商品数量
     */
    @TableField("quantity")
    private Long quantity;
    /**
     * 订单状态
     */
    @TableField("order_state")
    private Integer orderState;
    /**
     * 行程ID
     */
    @TableField("sid")
    private String sid;
    /**
     * 商品ID
     */
    @TableField("commodity_id")
    private String commodityId;
    /**
     * 充值账号
     */
    @TableField("recharge_account")
    private String rechargeAccount;
    /**
     * 产品形式
     */
    @TableField("product_form")
    private String productForm;
    /**
     * 是否重试
     */
    @TableField("retry")
    private String retry;

    public void freeData() {
        this.commodityCode = null;
        this.commodityName = null;
        this.commodityPrice = null;
        this.discountPrice = null;
        this.commodityIntroduction = null;
        this.commodityPic = null;
        this.quantity = null;
        this.orderState = null;
        this.orderId = null;
        this.sid = null;
        this.commodityId = null;
        this.rechargeAccount = null;
        this.productForm = null;
        this.retry = null;
    }

}
